﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDm_TrafaxleBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDm_Trafaxle;

        void Remove(IDm_Trafaxle entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDm_Trafaxle;

        /// <summary>
        /// 计算累计当量轴载与路龄的关系
        /// </summary>
        /// <param name="applist"></param>
        void CalacAxleLoadAndAge(List<IS_Apply> applist);
        /// <summary>
        /// 生成累计当量轴载与路龄的关系
        /// </summary>
        void GenerateAxleLoadAndAge();
    }
}
